//
//  CaculatorFunction.m
//  链式编程01
//
//  Created by 许卫星 on 16/12/26.
//  Copyright © 2016年 许卫星. All rights reserved.
//

#import "CaculatorFunction.h"

@implementation CaculatorFunction

- (CaculatorFunction *)caculatorFunction:(int (^)(int result))caculator
{
    self.result = caculator(self.result);
    return self;
}

- (CaculatorFunction *)equle:(BOOL (^)(int result))opertion
{
    self.isEqule = opertion(self.result);
    return self;
}

@end
